<%include("/common/list-top.html",{title:"用户管理",css:[
ctxPath +"/css/system-manage.css",
ctxPath+"/css/zjcss.css",
ctxPath+"/ztree/css/metroStyle.css",
ctxPath+"/zui/dist/lib/chosen/chosen.min.css"]}){} %>


<div class="container-fluid">
    <div class="page-head-nav">
        <div class="row">
            <div class="col-xs-11">
                <ol class="breadcrumb">
                    <li><a href="${ctxPath}"><i class="icon icon-home"></i>工作台</a></li>
					<li>系统管理</li>
					<li><a href="${ctxPath}/userManage">用户管理</a></li>
				</ol>
			</div>
	<div class="col-xs-1">
		<a class="btn btn-link" type="button" id="add">新增</a>
	</div>
        </div>
    </div>

<input type="hidden"  id="userType"  value="${userType} "><!-- 用户类型隐藏域 -->

<div class="row">
	<div class="col-xs-12" id="mainUI">
		<div class="row listui">
			<div class="col-xs-12 ">
				<div class="query">
					<div class="row">
						<div class="col-xs-12">
							<div class="col-xs-1">
								<label for="login_no">用户名</label>
							</div>
							<div class="col-xs-2">
								<input type="text" class="form-control" id="login_no"
									placeholder="用户名">
							</div>
							<div class="col-xs-1">
								<label for="nick">昵称</label>
							</div>
							<div class="col-xs-2">
								<input type="text" class="form-control" id="nick"
									placeholder="昵称">
							</div>
							
							<div class="col-xs-2">
								<button type="submit" class="btn btn-primary btn-query">
									<i class="icon-search"></i> 搜索
								</button>
							</div>
						</div>
					</div>
				</div>
				<div class="clearfix"></div>
				<div class="mainUI">
					<#listTable url="${ctxPath}/userManage"
						fields="login_no,用户名,no-sort,query|nick,昵称,no-sort,query|company_name,所属公司,no-sort,no-query|create_time,创建时间,sort,no-query|update_time,修改时间,no-sort,no-query|last_login_time,最后登录时间,no-sort,no-query" />
				</div>
			</div>
		</div>
	</div>
</div>
</div>



<div class="modal fade" id="addModal" tabindex="1" role="dialog">
	<div class="modal-dialog " style="width: 500px;">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true">×</span><span class="sr-only">关闭</span>
				</button>
				<h4 class="modal-title">新增用户</h4>
			</div>
			
			<div class="modal-body">
				
				<form method="post" id="userForm">
					<input type="hidden" name="id" id="id">
					<input type="hidden" name="companyId" id="companyId">
					<input type="hidden" name="companyCode" id="companyCode">
					
					<div class="row">
						<div class="col-xs-2">
							<label for="companyName">所属公司</label>
						</div>
						<div class="col-xs-8">
							<input type="text" class="form-control" name="companyName" id="companyName" readonly>
						</div>
					</div>
		
					<div style="height: 20px;"></div>
					<div class="row">
						<div class="col-xs-2">
							<label for="loginNo">用户名</label>
						</div>
						<div class="col-xs-8">
							<input type="text" class="form-control" name="loginNo"
								id="loginNo" placeholder="请输入用户名">
						</div>
					</div>
					
					<div style="height: 20px;"></div>
					<div class="row">
						<div class="col-xs-2">
							<label for="nick">昵称</label>
						</div>
						<div class="col-xs-8">
							<input type="text" class="form-control" name="nick"
								id="_nick" placeholder="请输入昵称">
						</div>
					</div>
					
					<div style="height: 20px;"></div>
					<!-- <div class="row">
						<div class="col-xs-2">
							<label for="role">角色</label>
						</div>
						<div class="col-xs-8">
							
							<select class="form-control" id="role" name="role">
									<option value=项目管理员>项目管理员</option>
									<option value="项目成员">项目成员</option>
									<option value="系统管理员" style="color:red" disabled="disabled">系统管理员</option>
								</select>
						</div>
					</div> -->
				
				</form>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
				<button type="button" id="save" class="btn btn-primary">保存</button>
				<button type="button" id="update" class="btn btn-primary">保存</button>
			</div>
		</div>
	</div>
</div>


<!-- 菜单树 -->
<div class="modal fade" id="permissionModal"  tabindex="0" role="dialog">
  <div class="modal-dialog" style="width: 600px;">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">
        <span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
        <h4 class="modal-title">权限分配</h4>
      </div>
      <div class="modal-body">
        
     		<input type="hidden" id="userId" name="userId" >
			<div class="row" style="margin-top: 10px;">
				<div class="col-xs-4">
				<label>菜单及功能</label>
				</div>
				<div class="col-xs-8">
				<ul id="menuTree" class="ztree" style="width:230px; overflow:auto;"></ul>
				</div>
			</div>
        
        
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="button" class="btn btn-primary" id="permissionSave">保存</button>
      </div>
    </div>
  </div>
</div>



<%include("/common/list-bottom.html",{js:[ 
ctxPath +"/js/systemManage/user-list.js",
ctxPath+"/blockui/jquery.blockui.min.js", 
ctxPath+"/ztree/js/jquery.ztree.all.min.js",
ctxPath+"/zui/dist/lib/chosen/chosen.min.js",
ctxPath+"/blockui/app.js"]}){}
%>
